package demo.service;

import java.util.List;

import demo.entity.Message;

public interface MessageService {
		
	public boolean addMessage(Message message);
		
	public boolean updateMessage(Message message);	
	
	public boolean deleteMessage(Integer id);
	
	public Message getById(Integer id);//根据编号查询单条信息
	
	
	//查询我的便签
	public List<Message> getByreceiveSend(Integer id,Integer pageNo,Integer pageSize);//查询自己的便签
	//查询便签的条数
	public int getReceiveSendIdCount(Integer receiveSendid);
	//根据收件人编号查询状态为未读的条数，根据发送人分组 
	public List<Message>getMessageStateCount(Integer receiveId);
	 //查询当前正在和我聊天的人
	public List<Message>getMessageByNotSendid(Integer sendid);
	//查询我和这个人的聊天记录
	public List<Message>getMessageByMyidAndSendid(Integer sendid,Integer receiveId);
		
}
